package com.xiaoqi.store.controller;

import com.xiaoqi.store.service.DownLoadExcelService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// 报表控制器
@RestController
@RequestMapping("/ExcelController")
@Slf4j
public class ExcelController extends BaseController {

    @Autowired
    private DownLoadExcelService downloadService;

    @GetMapping("/downLoadExcel")
    public boolean downLoadExcel(){
        downloadService.assembleExcel();
        log.info("1111");
        return true;
    }
}
